namespace SimpleWebServices.Web
{
    using System;
    using System.Web;
    using SimpleWebServices.Data;
    using SimpleWebServices.Web.UI.Html;
    using Xunit;

    public sealed class IResourceFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IResource).IsInterface);
        }

        [Fact]
        public void IResource_Cacheability_get()
        {
            try
            {
                HttpCacheability? value = (new IResourceDummy() as IResource).Cacheability;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Cacheability_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Cacheability = HttpCacheability.NoCache;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Data_get()
        {
            try
            {
                DataCollection value = (new IResourceDummy() as IResource).Data;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Data_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Data = null as DataCollection;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Description_get()
        {
            try
            {
                string value = (new IResourceDummy() as IResource).Description;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Description_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Description = null as string;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Etag_get()
        {
            try
            {
                string value = (new IResourceDummy() as IResource).Etag;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Etag_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Etag = null as string;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Expires_get()
        {
            try
            {
                Expiration value = (new IResourceDummy() as IResource).Expires;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Expires_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Expires = null as Expiration;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Links_get()
        {
            try
            {
                LinkCollection value = (new IResourceDummy() as IResource).Links;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Links_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Links = null as LinkCollection;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Metadata_get()
        {
            try
            {
                MetaCollection value = (new IResourceDummy() as IResource).Metadata;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Metadata_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Metadata = null as MetaCollection;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Title_get()
        {
            try
            {
                string value = (new IResourceDummy() as IResource).Title;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IResource_Title_set()
        {
            try
            {
                (new IResourceDummy() as IResource).Title = null as string;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}